<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js" type="text/javascript"charset="utf-8"></script>
    </head>

    <body>
        <!-- view -->
        <div id="app">
            <!-- 循环显示 -->
            <li v-for="item in items">
              {{item.message}}
            </li>
            <ol v-for="(item, index) in items">
              {{item.message}} --- {{index}}
            </ol>
            <li v-for="item in movies">{{ item }}</li>
        </div>


        <script type="text/javascript">
            let app = new Vue({
                el: "#app",
                data: {
                  items:[
                    {message: "java"},
                    {message: "python"},
                    {message: "javascript"}
                  ],
                  movies: ["大话西游", "霸王别姬", "少年派"]
                }
            })
        </script>
    </body>
</html>